package com.tjetc.dao;

import com.tjetc.domain.Record;
import com.tjetc.utils.PageInfo;

import java.sql.SQLException;
import java.util.List;

public interface RecordDao {

    int add(Record record) throws SQLException;

    int getMaxId() throws SQLException;

    List<Record> listMyRecord(int uid) throws SQLException;

    Record getById(int id) throws SQLException;

    int getCount(int did) throws SQLException;

    List<Record> list(PageInfo<Record> pageInfo, int did) throws SQLException;

    void out(int id) throws SQLException;

}
